<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class DriverMailList extends Model
{
    //
    const ROLE_DRIVER = 10;
    protected $table = 'v_drivers_mail_list';

    /***
     * 根据主键查询司机信息
     */
    public static  function getInfoById($dirver_id)
    {
        $info = DriverMailList::query()->select(['name','phone','id'])->where('id', $dirver_id)->first()->toArray();
        return $info;
    }
}
